@orderly.network/trading-leaderboard 2.6.3 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { FC, ReactNode } from 'react';
3
- import * as embla_carousel_react from 'embla-carousel-react';
4
3
  import * as _orderly_network_ui from '@orderly.network/ui';
5
4
  import { TableSort } from '@orderly.network/ui';
6
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -101,7 +100,7 @@ declare function useCampaignsScript(): {
101
100
  category: keyof CategorizedCampaigns;
102
101
  onCategoryChange: (value: string) => void;
103
102
  tradingUrl: string | undefined;
104
- emblaRef: embla_carousel_react.EmblaViewportRefType;
103
+ emblaRef: _orderly_network_ui.EmblaViewportRefType;
105
104
  emblaApi: TEmblaApi;
106
105
  scrollIndex: number;
107
106
  enableScroll: boolean;
@@ -229,7 +228,16 @@ interface TicketRules {
229
228
  interface CampaignConfig {
230
229
  campaign_id: number | string;
231
230
  title: string;
231
+ subtitle?: string;
232
232
  description: string;
233
+ content?: ReactNode;
234
+ classNames?: {
235
+ container?: string;
236
+ topContainer?: string;
237
+ title?: string;
238
+ description?: string;
239
+ descriptionContainer?: string;
240
+ };
233
241
  register_time?: string;
234
242
  start_time: string;
235
243
  end_time: string;
@@ -260,10 +268,19 @@ interface CampaignConfig {
260
268
  ruleConfig?: DescriptionConfig;
261
269
  };
262
270
  leaderboard_config?: LeaderboardConfig;
271
+ emphasisConfig?: {
272
+ subtitle: string;
273
+ walletConnect: {
274
+ title: string;
275
+ description: string;
276
+ };
277
+ hideConnectWallet: boolean;
278
+ };
263
279
  }
264
280
  interface LeaderboardConfig {
265
281
  use_general_leaderboard?: boolean;
266
282
  exclude_leaderboard_columns?: RankingColumnFields[];
283
+ week_one_addresses?: string[];
267
284
  }
268
285
  interface UserData {
269
286
  rank?: number | string;
@@ -333,6 +350,7 @@ type TradingLeaderboardState = {
333
350
  end_time: Date | string;
334
351
  };
335
352
  statistics?: CampaignStatistics;
353
+ setStatistics?: (statistics: CampaignStatistics) => void;
336
354
  };
337
355
  /**
338
356
  * Trading leaderboard context
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { FC, ReactNode } from 'react';
3
- import * as embla_carousel_react from 'embla-carousel-react';
4
3
  import * as _orderly_network_ui from '@orderly.network/ui';
5
4
  import { TableSort } from '@orderly.network/ui';
6
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -101,7 +100,7 @@ declare function useCampaignsScript(): {
101
100
  category: keyof CategorizedCampaigns;
102
101
  onCategoryChange: (value: string) => void;
103
102
  tradingUrl: string | undefined;
104
- emblaRef: embla_carousel_react.EmblaViewportRefType;
103
+ emblaRef: _orderly_network_ui.EmblaViewportRefType;
105
104
  emblaApi: TEmblaApi;
106
105
  scrollIndex: number;
107
106
  enableScroll: boolean;
@@ -229,7 +228,16 @@ interface TicketRules {
229
228
  interface CampaignConfig {
230
229
  campaign_id: number | string;
231
230
  title: string;
231
+ subtitle?: string;
232
232
  description: string;
233
+ content?: ReactNode;
234
+ classNames?: {
235
+ container?: string;
236
+ topContainer?: string;
237
+ title?: string;
238
+ description?: string;
239
+ descriptionContainer?: string;
240
+ };
233
241
  register_time?: string;
234
242
  start_time: string;
235
243
  end_time: string;
@@ -260,10 +268,19 @@ interface CampaignConfig {
260
268
  ruleConfig?: DescriptionConfig;
261
269
  };
262
270
  leaderboard_config?: LeaderboardConfig;
271
+ emphasisConfig?: {
272
+ subtitle: string;
273
+ walletConnect: {
274
+ title: string;
275
+ description: string;
276
+ };
277
+ hideConnectWallet: boolean;
278
+ };
263
279
  }
264
280
  interface LeaderboardConfig {
265
281
  use_general_leaderboard?: boolean;
266
282
  exclude_leaderboard_columns?: RankingColumnFields[];
283
+ week_one_addresses?: string[];
267
284
  }
268
285
  interface UserData {
269
286
  rank?: number | string;
@@ -333,6 +350,7 @@ type TradingLeaderboardState = {
333
350
  end_time: Date | string;
334
351
  };
335
352
  statistics?: CampaignStatistics;
353
+ setStatistics?: (statistics: CampaignStatistics) => void;
336
354
  };
337
355
  /**
338
356
  * Trading leaderboard context